package com.yunyike.mapper;

import java.util.List;

import com.yunyike.model.Category;
import com.yunyike.utils.mybatis.PageBean;

public interface CategoryMapper {
    int deleteByPrimaryKey(Integer categoryId);

    int insert(Category record);

    int insertSelective(Category record);

    Category selectByPrimaryKey(Integer categoryId);

    int updateByPrimaryKeySelective(Category record);

    int updateByPrimaryKey(Category record);
    
    List<Category> findCategoryListPage(PageBean<String> pageBean);
    
    List<Category> findCategoryByParentId(Integer parentId);
    
    List<Category> findCategoryByParentIds(List<Integer> parentIds);
}